[jquery] Appending to Second Last element

Posted by Shishant on Stack Overflow See other posts from Stack Overflow or by Shishant
Published on 2010-03-29T22:51:00Z Indexed on 2010/03/29 22:53 UTC
Read the original article Hit count: 233

Filed under:
|

Hello,

This is the final output Output

My HTML

<li id='$id'>TEXT
    <ul class='indent'>
        <li id='$id'>TEXT</li>
        <li id='$id'>TEXT</li>
        <li class='formContainer'> FORM </li>
    </ul>
</li>

I want to append a li between form after all other li So in this example new li will be appended between Test141 APPEND Input Box

The $id are db ids of li which are unique

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about JavaScript